home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / asm_subr.arc / COMOUT < prev    next >
Encoding:
Text File  |  1985-12-15  |  896 b   |  29 lines

  1. ;-------------------------comout routine begins--------------------------+
  2. ; from BLUEBOOK OF ASSEMBLY ROUTINES FOR IBM PC & XT.
  3. ;         page : 37
  4. ;
  5. ; NAME COMOUT
  6. ; ROUTINE FOR COMMUNICATIONS LINE OUTPUT
  7. ;
  8. ; FUNCTION: This routine sends a byte out one of the two communications
  9. ; lines.
  10. ; INPUT: Upon entry AL contains the byte to be sebt out and DX contains
  11. ; the comm unit number (0 for comm1: and 1 for comm2:).
  12. ; OUTPUT: Output is sent to the specified communications line.
  13. ; REGISTERS USED:  No registers are modified.
  14. ; SEGMENTS REFERENCED:  None
  15. ; ROUTINES CALLED:  BIOS interrupt 14h (RS232 I/O) is used.
  16. ; SPECIAL NOTES: None
  17. ;
  18. ; ROUTINE TO SEND OUTPUT TO A COMMUNICATIONS LINE
  19. ;
  20. comout    proc    far
  21. ;
  22.     mov    ah,1        ; send it out
  23.     int    14h        ; RS232 BIOS call
  24. ;
  25.     ret            ; return
  26. ;
  27. comout    endp
  28. ;-------------------------comout routine ends---------------------------+
  29.